﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.TaskScheduling.Migrations
{
    /// <inheritdoc />
    public partial class add_table_CmDeviceControl_1 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_TS_CM_DEVICE_CONTROL",
                schema: "TaskScheduling",
                table: "TS_CM_DEVICE_CONTROL");

            migrationBuilder.RenameTable(
                name: "TS_CM_DEVICE_CONTROL",
                schema: "TaskScheduling",
                newName: "CM_DEVICE_CONTROL",
                newSchema: "TaskScheduling");

            migrationBuilder.AddPrimaryKey(
                name: "PK_CM_DEVICE_CONTROL",
                schema: "TaskScheduling",
                table: "CM_DEVICE_CONTROL",
                column: "Id");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_CM_DEVICE_CONTROL",
                schema: "TaskScheduling",
                table: "CM_DEVICE_CONTROL");

            migrationBuilder.RenameTable(
                name: "CM_DEVICE_CONTROL",
                schema: "TaskScheduling",
                newName: "TS_CM_DEVICE_CONTROL",
                newSchema: "TaskScheduling");

            migrationBuilder.AddPrimaryKey(
                name: "PK_TS_CM_DEVICE_CONTROL",
                schema: "TaskScheduling",
                table: "TS_CM_DEVICE_CONTROL",
                column: "Id");
        }
    }
}
